import $ from 'jquery'

export default function(url, date, f) {
  $.ajax({
    type: 'POST',
    // 远程主机地址
    // url: 'http://47.99.66.33:8080/' + url,
    url: 'http://localhost:8080/' + url,
    contentType: 'application/json; charset=utf-8',
    data: JSON.stringify(date),
    success: f,
    error: function(message) {
      console.log(message)
    }
  })
}

